<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateSettingMessagesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('setting_messages', function (Blueprint $table) {
            $table->id();
            $table->integer('setting_id')->unsigned()->comment('系统配置setting表id');
            $table->char('email', 100)->nullable()->comment('系统通信邮箱');
            $table->char('email_password',100)->nullable()->comment('邮箱授权码');
            $table->char('email_username',100)->nullable()->comment('发件人名称');
            $table->char('await_check_tpl',50)->nullable()->comment('通用审核微信模板消息id');
            $table->char('result_check_tpl',50)->nullable()->comment('审核结果通知微信消息模板id');
            $table->char('result_check_sub',50)->nullable()->comment('审核结果通知微信订阅消息');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('setting_messages');
    }
}
